package com.bird.设计模式.创建型.单例模式.ThradLocal线程单例;

/**
 * @data 2022/3/1 11:56
 * @author: bird
 * @description: threadLocal
 */
public class Test {
    public static void main(String[] args) {

        ThreadLocalInstance instance = ThreadLocalInstance.getInstance();
        System.out.println(Thread.currentThread().getName() + " : " + instance);
        System.out.println(Thread.currentThread().getName() + " : " + instance);
        System.out.println(Thread.currentThread().getName() + " : " + instance);

    }
}
